#ifndef WANIMATIONSOLVER
#define WANIMATIONSOLVER

#include <vector>
#include <string>
#include <SFML\Graphics.hpp>

class WAnimation
{
	public: 
	int m_index;
	std::vector <sf::Rect <int>> m_frames;
};

class WSet
{
	public:
	int m_index;
	std::vector <WAnimation *> m_animations;
	WSet();
	~WSet();
};

class AnimationSolver
{
	std::vector <WSet *> m_Sets;

	void Reorder();

public:

	static AnimationSolver *Create();

	AnimationSolver();
	~AnimationSolver();
	bool Init();

	sf::Rect <int> getRect(int set, int animation, int *cframe, bool flip);//cframe is the current frame, 
	//it'll increment for the counter one if there's frames in the animation after this, else set to 0 and return that rect 

};

#endif